import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 获取用户基本信息API
 */
export function getUserInfoAPI() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

/**
 * 获取-员工-基本信息API
 */
export function getUserAPI(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
